<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>预览pdf</title>
<script type="text/javascript">
	function finPdf(){
//		window.open("http://localhost:8080/Util/devPdf?storeName=新建 DOC 文档 (2).pdf", "_blank","top=200,left=200,height=600,width=800,status=yes,toolbar=1,menubar=no,location=no,scrollbars=yes");
		window.open("http://localhost:8080/Util/devPdf?storeName=新建 DOC 文档 (2).pdf", "_self","top=200,left=200,height=600,width=800,status=yes,toolbar=1,menubar=no,location=no,scrollbars=yes");
	}
	//下面2个直接下载了
	function finWord(){
		window.open("http://localhost:8080/Util/devWord?storeName=001.docx", "_self","top=200,left=200,height=600,width=800,status=yes,toolbar=1,menubar=no,location=no,scrollbars=yes");
	}
	function finExcel(){
		window.open("http://localhost:8080/Util/devExcel?storeName=test1.xlsx", "_self","top=200,left=200,height=600,width=800,status=yes,toolbar=1,menubar=no,location=no,scrollbars=yes");
	}
	function finWord1(){
		window.open("http://localhost:8080/Util/devWord1?storeName=质量检测报告新模板_dzq_20170519_2（医院版）.docx", "_self","top=200,left=200,height=600,width=800,status=yes,toolbar=1,menubar=no,location=no,scrollbars=yes");
	}
//	$('#officeContent').attr("src","[请求路径]");
</script>
</head>
<body>
	<a href="javascript:void(0);" onclick="finPdf()">点击查看pdf</a><br/>
	<a href="javascript:void(0);" onclick="finWord()">点击查看word</a><br/>
	<a href="javascript:void(0);" onclick="finExcel()">点击查看excel</a><br/>
	<a href="javascript:void(0);" onclick="finWord1()">点击查看Word1</a><br/>
	<!-- <iframe id="officeContent" src="http://localhost:8080/Util/devExcel1?storeName=通讯录20180627.xls" width=1200px height=800px frameborder=0></iframe> -->
	<!-- <iframe id="officeContent" src="http://localhost:8080/Util/devWord1?storeName=质量检测报告新模板_dzq_20170519_2（医院版）.docx" width=1200px height=800px frameborder=0></iframe> -->
</body>
</html>